/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package org.abc;

/**
 * <p>Project: jse2303 - Ex8
 * <p>Powered by webrx On 2023-07-07 08:19:15
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex8 {
    public static void main(String[] args) {
        int j = 0;
        int s = 0;
        for (int i = 0; i < 10; i++) {
            s += j++;
            System.out.println(s);
        }
        System.out.println(s);
    }

}
